package com.zyj.guava.partition;

import com.google.common.collect.Lists;

import java.util.List;

public class Ids {

    //返回一个list, 里面有100w个id
    public static List<Long> getUserIds() {
        int capacity = 1000000;
        List<Long> ids = Lists.newArrayListWithCapacity(capacity);
        for (long i = 0; i < capacity; i++) {
            ids.add(i);
        }
        return ids;
    }
}
